import Vue from 'vue';
import VueRouter from 'vue-router';
Vue.use(VueRouter)
const Home = ()=>import("@/views/home/Home");
const Welcome = ()=>import("@/views/home/Welcome");
const Envmanage = ()=>import("@/views/manage/env/Envmanage");
const Apimanage = ()=>import("@/views/manage/api/Apimanage");
const Casemanage = ()=>import("@/views/manage/case/Casemanage");
const Planmanage = ()=>import("@/views/manage/plan/Planmanage");
const Envadd = ()=>import("@/views/manage/env/Envadd")
const Apiadd = ()=>import("@/views/manage/api/Apiadd")
const Caseadd = ()=>import("@/views/manage/case/Caseadd")
const Planadd = ()=>import("@/views/manage/plan/Planadd")
const PlanReportlsit = ()=>import("@/views/manage/plan/PlanReportlsit")
const ImportPages = ()=>import("@/views/manage/case/caseChildrem/ImportPages")
const Exerecord = ()=>import("@/views/manage/report/ExecuteRecord")
const planexeReport = ()=>import("@/views/manage/report/PlanexeReoprt")





const routes=[
  {
    path:'/',
    component:Home,
    redirect:'/welcome',
    children:[
      {
        path: '/welcome',
        name: 'WC',
        component:Welcome
      },{
        path: '/envmanage',
        name: 'EM',
        component:Envmanage
      },{
        path: '/apimanage',
        name: 'AM',
        component:Apimanage
      },{
        path: '/casemanage',
        name: 'CM',
        component:Casemanage
      },{
        path: '/planmanage',
        component:Planmanage
      },{
        path: '/envadd',
        component:Envadd
      },{
        path: '/apiadd',
        name: 'AD',
        component:Apiadd
      },{
        path: '/caseadd',
        name: 'CD',
        component:Caseadd
      },{
        path: '/preoprtlist',
        name: 'PRL',
        component:PlanReportlsit
      },{
        path: '/planadd',
        name: 'PD',
        component:Planadd
      },{
        path: '/caseImport',
        name: 'CI',
        component:ImportPages
      },{
        path: '/exerecord',
        name: 'ER',
        component:Exerecord
      },{
        path: '/planexerep',
        name: 'PER',
        component:planexeReport
      }
    ]
  }
]



const router=new VueRouter({
  mode: 'history',
  routes
})

export default router;